import { apiPrefix } from '@/consts/consts'

export default ({ $service:request }) => ({
  // 4.12.1. 机型适配下拉列表
  modelList(params) {
    return request({
      url: `${apiPrefix}/api/v1/down/model/list`,
      method: 'get',
      params
    })
  },

  // 4.12.2. 机构下拉列表
  organizationList(data) {
    return request({
      url: `${apiPrefix}/api/v1/down/organization/list`,
      method: 'get',
      data
    })
  },

  // 4.12.6. 获取OSS签名
  ossPolicy(params) {
    return request({
      url: `${apiPrefix}/api/v1/oss/policy`,
      method: 'get',
      params
    })
  },
})
